package ferp.center.network.response;

import ferp.poll.Poll;

/**
 * User: igorgok
 * Date: 12/9/12 5:17 PM
 */
public class ResponseConfigGet
{
  // default threshold for bid contributors
  public static final int DEFAULT_THRESHOLD = 30;

  public static final class Bidding
  {
    // id
    public long id;
    // enable NN on device flag
    public boolean enable = false;
    // to send bids to the center player's score:pool ratio has to be greater than the threshold
    public int threshold = DEFAULT_THRESHOLD;
    // NN data either in JSON format (for old versions of NN) or as NN object serialized to byte array,
    // then deflated and converted to hex sequence
    public String nnj;
  }

  public static final class Levels
  {
    public String data;
  }

  public static final class Ad
  {
    public static final class Interstitial
    {
      public boolean enabled;
    }

    public Interstitial interstitial;
  }

  // configuration ID
  public long id;
  // bidding NN configuration
  public Bidding bidding;
  // levels configuration
  public Levels levels;
  // messages in JSON format
  public String messages;
  // poll
  public Poll poll;
  // AD configuration
  public Ad ad;
}
